package com.jic.interaction.JDVOP.controller;


import com.jic.interaction.JDVOP.common.utils.RestResult;
import com.jic.interaction.JDVOP.model.vo.request.InventoryRequest;
import com.jic.interaction.JDVOP.model.vo.response.InventoryResponse;
import com.jic.interaction.JDVOP.service.InventoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@Api(value = "JD 库存", tags = "JD库存", description = "InventoryController")
@RestController
@RequestMapping("/api/stock/")
public class InventoryController {

    @Resource
    private InventoryService service;

    @ApiModelProperty("查询商品库存")
    @PostMapping("getNewStockById")
    @ResponseBody
    private RestResult<InventoryResponse> getNewStockById(@RequestBody InventoryRequest request){
        InventoryResponse response= service.getNewStockById(request);
        return RestResult.error(null,"9999","本人正在熬夜加班中");
    }
}
